package org.dtrd.modules.evaluation.service;

import org.dtrd.modules.evaluation.entity.bean.DiabetesInfo;
import org.dtrd.modules.evaluation.entity.dto.DiabetesDTO;
import org.dtrd.modules.evaluation.entity.po.DtrdEntEvaluationRdDiabetes;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * <p>
 * 糖尿病风险评估 服务类
 * </p>
 *
 * @author QR
 * @since 2021-09-26
 */
public interface IDtrdEntEvaluationRdDiabetesService extends IService<DtrdEntEvaluationRdDiabetes> {

    /**
     * 添加糖尿病风险评估
     * @return
     */
    DiabetesInfo saveDiabetesInfo(DiabetesDTO dto);

    /**
     * 通过 patientId 查询最近一次的糖尿病风险评估
     */
    DiabetesInfo getDiabetesInfoLatest(Integer patientId);
}
